<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('${param.nav_title}')" />
    <th:block th:include="include :: bootstrap-fileinput-css" />
    <th:block th:include="include :: select2-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-info-edit" th:object="${carInfo}">
            <input name="carInfoId" th:field="*{carInfoId}" type="hidden">
            <input name="carId" th:field="*{carId}" type="hidden">
            <input name="menuId" th:field="*{menuId}" type="hidden">
            <input name="configType" th:field="*{configType}" type="hidden">
            <input id="car_info" name="info" th:field="*{info}" type="hidden">
            <div class="form-group">
                <label class="col-sm-2 control-label">部件编号：</label>
                <div class="col-sm-2">
                    <input name="infoMap.serialNumber" th:field="*{infoMap.serialNumber}" class="form-control" type="text" readonly required>
                </div>
                <label class="col-sm-2 control-label">部件数量：</label>
                <div class="col-sm-1">
                    <input name="infoMap.quantity" th:field="*{infoMap.quantity}" class="form-control" type="text" />
                </div>
                <label class="col-sm-2 control-label">部件类型：</label>
                <div class="col-sm-3">
                    <select class="form-control select2-multiple" name="infoMap.type" th:with="type=${@dict.getType('sys_type')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{infoMap.type}"></option>
                    </select>
                </div>
            </div>
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">部件尺寸</h3>
                </div>
                <div class="panel-body">
                    <span class="form-horizontal" role="form">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">长：</label>
                            <div class="col-sm-2"><input name="infoMap.length" th:field="*{infoMap.length}" class="form-control" type="text" /></div>
                            <label class="col-sm-2 control-label">高：</label>
                            <div class="col-sm-2"><input name="infoMap.height" th:field="*{infoMap.height}" class="form-control" type="text" /></div>
                            <label class="col-sm-2 control-label">深：</label>
                            <div class="col-sm-2"><input name="infoMap.deep" th:field="*{infoMap.deep}" class="form-control" type="text" /></div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">轴承类/变速箱：</label>
                            <span th:class="('label label-default '+(*{#strings.isEmpty(infoMap.thickness)}?'':'hidden'))" id="thickness" onclick="showItem(this)">厚度</span>
                            <span th:class="('label label-default '+(*{#strings.isEmpty(infoMap.insideDiameter)}?'':'hidden'))" id="insideDiameter" onclick="showItem(this)">内径</span>
                            <span th:class="('label label-default '+(*{#strings.isEmpty(infoMap.bearingWidth)}?'':'hidden'))" id="bearingWidth" onclick="showItem(this)">轴承宽度</span>
                            <span th:class="('label label-default '+(*{#strings.isEmpty(infoMap.gearThickness)}?'':'hidden'))" id="gearThickness" onclick="showItem(this)">齿轮厚度</span>
                            <span th:class="('label label-default '+(*{#strings.isEmpty(infoMap.gearTooth1)}?'':'hidden'))" id="gearTooth1" onclick="showItem(this)">1挡齿轮齿数</span>
                            <span th:class="('label label-default '+(*{#strings.isEmpty(infoMap.gearTooth2)}?'':'hidden'))" id="gearTooth2" onclick="showItem(this)">2挡齿轮齿数</span>
                            <span th:class="('label label-default '+(*{#strings.isEmpty(infoMap.gearTooth3)}?'':'hidden'))" id="gearTooth3" onclick="showItem(this)">3挡齿轮齿数</span>
                            <span th:class="('label label-default '+(*{#strings.isEmpty(infoMap.gearTooth4)}?'':'hidden'))" id="gearTooth4" onclick="showItem(this)">4挡齿轮齿数</span>
                            <span th:class="('label label-default '+(*{#strings.isEmpty(infoMap.gearTooth5)}?'':'hidden'))" id="gearTooth5" onclick="showItem(this)">5挡齿轮齿数</span>
                            <span th:class="('label label-default '+(*{#strings.isEmpty(infoMap.gearTooth6)}?'':'hidden'))" id="gearTooth6" onclick="showItem(this)">6挡齿轮齿数</span>
                            <span th:class="('label label-default '+(*{#strings.isEmpty(infoMap.gearTooth7)}?'':'hidden'))" id="gearTooth7" onclick="showItem(this)">7挡齿轮齿数</span>
                            <span th:class="('label label-default '+(*{#strings.isEmpty(infoMap.gearTooth8)}?'':'hidden'))" id="gearTooth8" onclick="showItem(this)">8挡齿轮齿数</span>
                            <span th:class="('label label-default '+(*{#strings.isEmpty(infoMap.gearTooth9)}?'':'hidden'))" id="gearTooth9" onclick="showItem(this)">9挡齿轮齿数</span>
                            <span th:class="('label label-default '+(*{#strings.isEmpty(infoMap.gearTooth10)}?'':'hidden'))" id="gearTooth10" onclick="showItem(this)">10挡齿轮齿数</span>
                            <span th:class="('label label-default '+(*{#strings.isEmpty(infoMap.reverseGearTooth)}?'':'hidden'))" id="reverseGearTooth" onclick="showItem(this)">倒挡齿轮齿数</span>
                            <span th:class="('label label-default '+(*{#strings.isEmpty(infoMap.differentialGearTooth)}?'':'hidden'))" id="differentialGearTooth" onclick="showItem(this)">差速器齿轮齿数</span>
                            <span th:class="('label label-default '+(*{#strings.isEmpty(infoMap.outputGearTooth)}?'':'hidden'))" id="outputGearTooth" onclick="showItem(this)">输出轴齿轮齿数</span>
                            <span th:class="('label label-default '+(*{#strings.isEmpty(infoMap.outputGearToothLong)}?'':'hidden'))" id="outputGearToothLong" onclick="showItem(this)">（长）输出轴齿轮齿数</span>
                            <span th:class="('label label-default '+(*{#strings.isEmpty(infoMap.outputGearToothShort)}?'':'hidden'))" id="outputGearToothShort" onclick="showItem(this)">（短）输出轴齿轮齿数</span>
                        </div>
                        <div th:class="('form-group'+(*{#strings.isEmpty(infoMap.thickness)}?' hidden':''))"  id="id-thickness">
                            <label class="col-sm-2 control-label">厚度：</label>
                            <div class="col-sm-2">
                                <input name="infoMap.thickness" th:field="*{infoMap.thickness}" class="form-control" type="text" />
                            </div>
                        </div>
                        <div th:class="('form-group'+(*{#strings.isEmpty(infoMap.insideDiameter)}?' hidden':''))" id="id-insideDiameter">
                            <label class="col-sm-2 control-label">内径：</label>
                            <div class="col-sm-2">
                                <input name="infoMap.insideDiameter" th:field="*{infoMap.insideDiameter}" class="form-control" type="text" />
                            </div>
                        </div>
                        <div th:class="('form-group'+(*{#strings.isEmpty(infoMap.bearingWidth)}?' hidden':''))" id="id-bearingWidth">
                            <label class="col-sm-2 control-label">轴承宽度：</label>
                            <div class="col-sm-2">
                                <input name="infoMap.bearingWidth" th:field="*{infoMap.bearingWidth}" class="form-control" type="text" />
                            </div>
                        </div>
                        <div th:class="('form-group'+(*{#strings.isEmpty(infoMap.gearThickness)}?' hidden':''))" id="id-gearThickness">
                            <label class="col-sm-2 control-label">齿轮厚度：</label>
                            <div class="col-sm-2"><input name="infoMap.gearThickness" th:field="*{infoMap.gearThickness}" class="form-control" type="text" /></div>
                        </div>
                        <div th:class="('form-group'+(*{#strings.isEmpty(infoMap.gearTooth1)}?' hidden':''))" id="id-gearTooth1">
                            <label class="col-sm-2 control-label">1挡齿轮齿数：</label>
                            <div class="col-sm-2"><input name="infoMap.gearTooth1" th:field="*{infoMap.gearTooth1}" class="form-control" type="text" /></div>
                        </div>
                        <div th:class="('form-group'+(*{#strings.isEmpty(infoMap.gearTooth2)}?' hidden':''))" id="id-gearTooth2">
                            <label class="col-sm-2 control-label">2挡齿轮齿数：</label>
                            <div class="col-sm-2"><input name="infoMap.gearTooth2" th:field="*{infoMap.gearTooth2}" class="form-control" type="text" /></div>
                        </div>
                        <div th:class="('form-group'+(*{#strings.isEmpty(infoMap.gearTooth3)}?' hidden':''))" id="id-gearTooth3">
                            <label class="col-sm-2 control-label">3挡齿轮齿数：</label>
                            <div class="col-sm-2"><input name="infoMap.gearTooth3" th:field="*{infoMap.gearTooth3}" class="form-control" type="text" /></div>
                        </div>
                        <div th:class="('form-group'+(*{#strings.isEmpty(infoMap.gearTooth4)}?' hidden':''))" id="id-gearTooth4">
                            <label class="col-sm-2 control-label">4挡齿轮齿数：</label>
                            <div class="col-sm-2"><input name="infoMap.gearTooth4" th:field="*{infoMap.gearTooth4}" class="form-control" type="text" /></div>
                        </div>
                        <div th:class="('form-group'+(*{#strings.isEmpty(infoMap.gearTooth5)}?' hidden':''))" id="id-gearTooth5">
                            <label class="col-sm-2 control-label">5挡齿轮齿数：</label>
                            <div class="col-sm-2"><input name="infoMap.gearTooth5" th:field="*{infoMap.gearTooth5}" class="form-control" type="text" /></div>
                        </div>
                        <div th:class="('form-group'+(*{#strings.isEmpty(infoMap.gearTooth6)}?' hidden':''))" id="id-gearTooth6">
                            <label class="col-sm-2 control-label">6挡齿轮齿数：</label>
                            <div class="col-sm-2"><input name="infoMap.gearTooth6" th:field="*{infoMap.gearTooth6}" class="form-control" type="text" /></div>
                        </div>
                        <div th:class="('form-group'+(*{#strings.isEmpty(infoMap.gearTooth7)}?' hidden':''))" id="id-gearTooth7">
                            <label class="col-sm-2 control-label">7挡齿轮齿数：</label>
                            <div class="col-sm-2"><input name="infoMap.gearTooth7" th:field="*{infoMap.gearTooth7}" class="form-control" type="text" /></div>
                        </div>
                        <div th:class="('form-group'+(*{#strings.isEmpty(infoMap.gearTooth8)}?' hidden':''))" id="id-gearTooth8">
                            <label class="col-sm-2 control-label">8挡齿轮齿数：</label>
                            <div class="col-sm-2"><input name="infoMap.gearTooth8" th:field="*{infoMap.gearTooth8}" class="form-control" type="text" /></div>
                        </div>
                        <div th:class="('form-group'+(*{#strings.isEmpty(infoMap.gearTooth9)}?' hidden':''))" id="id-gearTooth9">
                            <label class="col-sm-2 control-label">9挡齿轮齿数：</label>
                            <div class="col-sm-2"><input name="infoMap.gearTooth9" th:field="*{infoMap.gearTooth9}" class="form-control" type="text" /></div>
                        </div>
                        <div th:class="('form-group'+(*{#strings.isEmpty(infoMap.gearTooth10)}?' hidden':''))" id="id-gearTooth10">
                            <label class="col-sm-2 control-label">10挡齿轮齿数：</label>
                            <div class="col-sm-2"><input name="infoMap.gearTooth10" th:field="*{infoMap.gearTooth10}" class="form-control" type="text" /></div>
                        </div>
                        <div th:class="('form-group'+(*{#strings.isEmpty(infoMap.reverseGearTooth)}?' hidden':''))" id="id-reverseGearTooth">
                            <label class="col-sm-2 control-label">倒挡齿轮齿数：</label>
                            <div class="col-sm-2"><input name="infoMap.reverseGearTooth" th:field="*{infoMap.reverseGearTooth}" class="form-control" type="text" /></div>
                        </div>
                        <div th:class="('form-group'+(*{#strings.isEmpty(infoMap.differentialGearTooth)}?' hidden':''))" id="id-differentialGearTooth">
                            <label class="col-sm-2 control-label">差速器齿轮齿数：</label>
                            <div class="col-sm-2"><input name="infoMap.differentialGearTooth" th:field="*{infoMap.differentialGearTooth}" class="form-control" type="text" /></div>
                        </div>
                        <div th:class="('form-group'+(*{#strings.isEmpty(infoMap.outputGearTooth)}?' hidden':''))" id="id-outputGearTooth">
                            <label class="col-sm-2 control-label">输出轴齿轮齿数：</label>
                            <div class="col-sm-2"><input name="infoMap.outputGearTooth" th:field="*{infoMap.outputGearTooth}" class="form-control" type="text" /></div>
                        </div>
                        <div th:class="('form-group'+(*{#strings.isEmpty(infoMap.outputGearToothLong)}?' hidden':''))" id="id-outputGearToothLong">
                            <label class="col-sm-2 control-label">（长）输出轴齿轮齿数：</label>
                            <div class="col-sm-2"><input name="infoMap.outputGearToothLong" th:field="*{infoMap.outputGearToothLong}" class="form-control" type="text" /></div>
                        </div>
                        <div th:class="('form-group'+(*{#strings.isEmpty(infoMap.outputGearToothShort)}?' hidden':''))" id="id-outputGearToothShort">
                            <label class="col-sm-2 control-label">（短）输出轴齿轮齿数：</label>
                            <div class="col-sm-2"><input name="infoMap.outputGearToothShort" th:field="*{infoMap.outputGearToothShort}" class="form-control" type="text" /></div>
                        </div>
                    </span>
                </div>
            </div>
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">部件信息</h3>
                </div>
                <div class="panel-body">
                    <span class="form-horizontal" role="form">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">线束：</label>
                            <span th:class="('label label-default '+(*{#strings.isEmpty(infoMap.harnessProtection1)}?'':'hidden'))" id="harnessProtection1" onclick="showItem(this)">线束保护1</span>
                            <span th:class="('label label-default '+(*{#strings.isEmpty(infoMap.harnessProtection2)}?'':'hidden'))" id="harnessProtection2" onclick="showItem(this)">线束保护2</span>
                            <span th:class="('label label-default '+(*{#strings.isEmpty(infoMap.harnessProtection3)}?'':'hidden'))" id="harnessProtection3" onclick="showItem(this)">线束保护3</span>
                            <span th:class="('label label-default '+(*{#strings.isEmpty(infoMap.harnessProtection4)}?'':'hidden'))" id="harnessProtection4" onclick="showItem(this)">线束保护4</span>
                            <span th:class="('label label-default '+(*{#strings.isEmpty(infoMap.harnessProtection5)}?'':'hidden'))" id="harnessProtection5" onclick="showItem(this)">线束保护5</span>
                        </div>
                        <div th:class="('form-group'+(*{#strings.isEmpty(infoMap.harnessProtection1)}?' hidden':''))"  id="id-harnessProtection1">
                            <label class="col-sm-2 control-label">线束保护1：</label>
                            <div class="col-sm-2">
                                <input name="infoMap.harnessProtection1" th:field="*{infoMap.harnessProtection1}" class="form-control" type="text" />
                            </div>
                        </div>
                        <div th:class="('form-group'+(*{#strings.isEmpty(infoMap.harnessProtection2)}?' hidden':''))"  id="id-harnessProtection2">
                            <label class="col-sm-2 control-label">线束保护2：</label>
                            <div class="col-sm-2">
                                <input name="infoMap.harnessProtection2" th:field="*{infoMap.harnessProtection2}" class="form-control" type="text" />
                            </div>
                        </div>
                        <div th:class="('form-group'+(*{#strings.isEmpty(infoMap.harnessProtection3)}?' hidden':''))"  id="id-harnessProtection3">
                            <label class="col-sm-2 control-label">线束保护3：</label>
                            <div class="col-sm-2">
                                <input name="infoMap.harnessProtection3" th:field="*{infoMap.harnessProtection3}" class="form-control" type="text" />
                            </div>
                        </div>
                        <div th:class="('form-group'+(*{#strings.isEmpty(infoMap.harnessProtection4)}?' hidden':''))"  id="id-harnessProtection4">
                            <label class="col-sm-2 control-label">线束保护4：</label>
                            <div class="col-sm-2">
                                <input name="infoMap.harnessProtection4" th:field="*{infoMap.harnessProtection4}" class="form-control" type="text" />
                            </div>
                        </div>
                        <div th:class="('form-group'+(*{#strings.isEmpty(infoMap.harnessProtection5)}?' hidden':''))"  id="id-harnessProtection5">
                            <label class="col-sm-2 control-label">线束保护5：</label>
                            <div class="col-sm-2">
                                <input name="infoMap.harnessProtection5" th:field="*{infoMap.harnessProtection5}" class="form-control" type="text" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">螺柱/螺母：</label>
                            <span th:class="('label label-default '+(*{#strings.isEmpty(infoMap.stud)}?'':'hidden'))" id="stud" onclick="showItem(this)">螺柱</span>
                            <span th:class="('label label-default '+(*{#strings.isEmpty(infoMap.nut)}?'':'hidden'))" id="nut" onclick="showItem(this)">螺母</span>
                            <span th:class="('label label-default '+(*{#strings.isEmpty(infoMap.thread)}?'':'hidden'))" id="thread" onclick="showItem(this)">螺纹</span>
                        </div>
                        <div th:class="('form-group'+(*{#strings.isEmpty(infoMap.stud)}?' hidden':''))"  id="id-stud">
                            <label class="col-sm-2 control-label">螺柱：</label>
                            <div class="col-sm-2">
                                <input name="infoMap.stud" th:field="*{infoMap.stud}" class="form-control" type="text" />
                            </div>
                        </div>
                        <div th:class="('form-group'+(*{#strings.isEmpty(infoMap.nut)}?' hidden':''))"  id="id-nut">
                            <label class="col-sm-2 control-label">螺母：</label>
                            <div class="col-sm-2">
                                <input name="infoMap.nut" th:field="*{infoMap.nut}" class="form-control" type="text" />
                            </div>
                        </div>
                        <div th:class="('form-group'+(*{#strings.isEmpty(infoMap.thread)}?' hidden':''))"  id="id-thread">
                            <label class="col-sm-2 control-label">螺纹：</label>
                            <div class="col-sm-2">
                                <input name="infoMap.thread" th:field="*{infoMap.thread}" class="form-control" type="text" />
                            </div>
                        </div>
                        <label class="col-sm-2 control-label">传感器形式：</label>
                        <div class="col-sm-2">
                            <select class="form-control" name="infoMap.sensorForm" th:with="type=${@dict.getType('sensor_form')}">
                                <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{infoMap.sensorForm}"></option>
                            </select>
                        </div>
                    </span>
                </div>
            </div>
            <div class="panel panel-default">
                <div class="panel-heading">
                    <select class="form-control" style="width: 150px;" name="infoMap.weightType" th:field="*{infoMap.weightType}" id="weightTypeId" onchange="weightTypeSelect(this)">
                        <option value="part">部件重量</option>
                        <option value="liquid">液体重量</option>
                        <option value="gas">气体重量</option>
                    </select>
                </div>
                <div class="panel-body">
                    <span class="form-horizontal" role="form">
                        <div th:class="*{infoMap.weightType=='part'||infoMap.weightType==null}?'form-group weightType':'form-group weightType hidden'" id="part">
                            <label class="col-sm-2 control-label">部件主体重量：</label>
                            <div class="col-sm-2">
                                <input name="infoMap.weightPart" th:field="*{infoMap.weightPart}" class="form-control" type="text" />
                            </div>
                            <label class="col-sm-2 control-label">紧固件重量：</label>
                            <div class="col-sm-2">
                                <input name="infoMap.weightFastener" th:field="*{infoMap.weightFastener}" class="form-control" type="text" />
                            </div>
                            <label class="col-sm-2 control-label">细节重量：</label>
                            <div class="col-sm-2">
                                <input name="infoMap.weightDetail" th:field="*{infoMap.weightDetail}" class="form-control" type="text" />
                            </div>
                        </div>
                        <div th:class="*{infoMap.weightType=='liquid'}?'form-group weightType':'form-group weightType hidden'" id="liquid">
                            <label class="col-sm-2 control-label">油液重量：</label>
                            <div class="col-sm-2">
                                <input name="infoMap.weightOil" th:field="*{infoMap.weightOil}" class="form-control" type="text" />
                            </div>
                        </div>
                        <div th:class="*{infoMap.weightType=='gas'}?'form-group weightType':'form-group weightType hidden'" id="gas">
                            <label class="col-sm-2 control-label">气体重量：</label>
                            <div class="col-sm-2">
                                <input name="infoMap.weightGas" th:field="*{infoMap.weightGas}" class="form-control" type="text" />
                            </div>
                        </div>
                    </span>
                </div>
            </div>
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">供应商信息</h3>
                </div>
                <div class="panel-body">
                    <span class="form-horizontal" role="form">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">供应商：</label>
                            <div class="col-sm-3">
                                <select class="form-control" name="infoMap.supplier" th:with="type=${@dict.getType('supplier')}">
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{infoMap.supplier}"></option>
                                </select>
                            </div>
                            <label class="col-sm-1 control-label">首页：</label>
                            <div class="col-sm-2">
                                <input name="infoMap.supplierUrl" th:field="*{infoMap.supplierUrl}" class="form-control" type="text" />
                            </div>
                            <label class="col-sm-1 control-label">产地：</label>
                            <div class="col-sm-3">
                                <select class="form-control" name="infoMap.supplier" th:with="type=${@dict.getType('supplier_origin')}">
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{infoMap.supplier}"></option>
                                </select>
                            </div>
                            <label class="col-sm-2 control-label">LOGO：</label>
                            <div class="col-sm-3"
                                 th:include="system/common/file_upload :: multiple_img(_file_id='multipleFile',_file_type='img',_file_list=${@file.getFiles(carInfo.carId,carInfo.configType,'supplier_logo'+carInfo.carInfoId)})"/>
                        </div>
                    </span>
                </div>
            </div>
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">主材料信息</h3>
                </div>
                <div class="panel-body">
                    <span class="form-horizontal" role="form">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">材料归属：</label>
                            <div class="col-sm-2">
                                <select class="form-control" name="infoMap.materialAttribution" th:with="type=${@dict.getType('material_attribution')}">
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{infoMap.materialAttribution}"></option>
                                </select>
                            </div>
                            <label class="col-sm-2 control-label">材料类型：</label>
                            <div class="col-sm-2">
                                <select class="form-control" name="infoMap.materialType" th:with="type=${@dict.getType('material_type')}">
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{infoMap.materialType}"></option>
                                </select>
                            </div>
                            <label class="col-sm-2 control-label">材料信息：</label>
                            <div class="col-sm-2">
                                <select class="form-control" name="infoMap.materialInformation" th:with="type=${@dict.getType('material_information')}">
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{infoMap.materialInformation}"></option>
                                </select>
                            </div>
                        </div>
                    </span>
                </div>
            </div>
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">其它材料信息</h3>
                </div>
                <div class="panel-body">
                    <span class="form-horizontal" role="form">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">其他材料信息1：</label>
                            <div class="col-sm-2">
                                <select class="form-control" name="infoMap.materialInformationOther1" th:with="type=${@dict.getType('material_information')}">
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{infoMap.materialInformationOther1}"></option>
                                </select>
                            </div>
                            <label class="col-sm-2 control-label">其他材料信息2：</label>
                            <div class="col-sm-2">
                                <select class="form-control" name="infoMap.materialInformationOther2" th:with="type=${@dict.getType('material_information')}">
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{infoMap.materialInformationOther2}"></option>
                                </select>
                            </div>
                            <label class="col-sm-2 control-label">其他材料信息3：</label>
                            <div class="col-sm-2">
                                <select class="form-control" name="infoMap.materialInformationOther3" th:with="type=${@dict.getType('material_information')}">
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{infoMap.materialInformationOther3}"></option>
                                </select>
                            </div>
                            <label class="col-sm-2 control-label">其他材料信息4：</label>
                            <div class="col-sm-2">
                                <select class="form-control" name="infoMap.materialInformationOther4" th:with="type=${@dict.getType('material_information')}">
                                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{infoMap.materialInformationOther4}"></option>
                                </select>
                            </div>
                        </div>
                    </span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">部件归属：</label>
                <div class="col-sm-8">
                    <select class="form-control" name="infoMap.belong" th:with="type=${@dict.getType('sys_belong')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{infoMap.belong}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">备注：</label>
                <div class="col-sm-8">
                    <textarea name="remark" class="form-control">[[*{remark}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label"></label>
                <div class="col-sm-2"><button type="button" class="btn btn-success" onclick="submitHandler()">上传</button></div>
                <label class="col-sm-2 control-label"></label>
                <div class="col-sm-2"><button type="button" class="btn btn-success" onclick="toPart()">系统录入</button></div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: bootstrap-fileinput-js" />
    <th:block th:include="include :: select2-js" />
    <th:block th:include="include :: bootstrap-select-js" />
    <script th:inline="javascript">
        var prefix = ctx + "system/car/info";
        $("#form-info-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                let json=$('#form-info-edit').serializeJson();
                console.log(json)
                $('#car_info').val(JSON.stringify(json.infoMap)||'{}');
                let serialize = $('#form-info-edit').serialize();
                console.log(serialize)
                // console.log(JSON.stringify($('#form-info-edit').serializeJson()))
                // return;
                $.operate.save(prefix + "/edit?_="+Math.random(), serialize);
            }
        }
        function toPart() {
            let newVar = prefix+'/edit/[[${carInfo.carId}]]?_=' + Math.random();
            // newVar += '&carInfoId=[[${carInfo.carInfoId}]]';
            newVar += '&busType=car_sys';
            newVar += '&menuId=[[${carInfo.menuId}]]';
            newVar += '&nav_title='+[[${param.nav_title}]];
            // $(this).parent().('#iframeCar').attr('src', newVar);
            window.parent.document.getElementById("iframeCar").src=newVar;
        }
        function weightTypeSelect(){
            let val = $('#weightTypeId option:selected').val();
            console.log(val)
            $('.weightType').addClass('hidden');
            $('#'+val).removeClass('hidden');
        }
        function showItem(_tag){
            $(_tag).hide();
            $('#id-'+$(_tag).attr('id')).removeClass('hidden')
        }
        $(function (){
            multipleFile_manager.init({busId: [[${carInfo.carId}]], busType: [[${carInfo.configType}]], fileType: 'img',groupType:'supplier_logo[[${carInfo.carInfoId}]]'});
        });
    </script>
</body>
</html>